package com.ssy.lingxi.after.sale.model.bo;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 售后评价BO
 * @author 伍将
 * @date 2020/9/2
 * @version 2.0.0
 */
public class EvaluateBO implements Serializable {
    private static final long serialVersionUID = -8983438397728238934L;

    /**
     * 评价等级（5个级别）
     */
    @NotNull(message = "评价等级为1-5")
    @Positive(message = "评价等级为1-5")
    private Integer level;

    /**
     * 评价内容
     */
    @Size(max = 120, message = "评价内容最长120个字符，60个汉字")
    private String content;

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
